<!--{if $cate_list}-->
	<div class="piece1 mb20">
			<div class="dzt_share_title">
				<ul>
					<!-- {eval $title_id=1;} -->
					<!--{loop $cate_list $citem}-->
					<!-- {if $title_id==1} -->
					<li class="first_title">
					<!-- {elseif $title_id==5} -->
					<li class="last_title">
					<!-- {else} -->
					<li>
					<!-- {/if} -->
					<a href="#" onclick="changeCate('{$citem['cate']['cate_code']}'); return false;">{$citem['cate']['short_name']}</a>
					</li>
					<!-- {eval $title_id++;} -->
					<!--{/loop}-->
				</ul>
			</div>
			<!--{loop $cate_list $citem}-->
			<div class="dazhetime_cate_share_box cat_hidden" id="{$citem['cate']['cate_code']}" >
				<div class="cat_tag">
					<span class="more_fr">
						<a href="{u book/cate cate=$citem['cate']['cate_code']}">更多>></a>
					</span>
					<span class="st_key">
					<!--{eval $tag_index =1;}-->
					<!--{loop $citem['cate']['index_tags'] $tag}-->
					<a target="_blank" href="{u book/cate sort=hot1,tag=$tag['url_tag'],cate=$citem['cate']['cate_code']}">{$tag['tag_name']}</a>
					<!--{if $tag_index > 11}-->
					<!--{eval break;}-->
					<!--{/if}-->
					<!--{eval $tag_index++;}-->
					<!--{/loop}-->
					</span>
				</div>
				<div class="dazhetime_cate_shop">
					<div class="dazhetime_cate_shop_list">
					<ul>
						<!--{loop $citem['shop_list'] $shop}-->
						<li>
							<a href="{u shop/show id=$shop[shop_id]}" target="_blank" title="{$shop['shop_name']}"><img  class="lazyload" width="50" height="50" src="./tpl/images/lazyload.gif"  original="{getimgbyid $shop['shop_logo']}"/></a> 
						</li>
						<!--{/loop}-->
					</ul>
					</div>
				</div>
				<!--{eval $cate_idx = 1;}-->
				<div class="dazhetime_cate_center">
				<ul>
				<!--{loop $citem['share_list'] $share}-->
					<li class="cate_share">
						<a href="{u book/shopping tag=$share['tag_name'],sid=$share['url']}" target="_blank">
							<img src="{getimg $share['img'] 160 160}" width="160" height="160" />
						</a>
						<div class="cate_share_name" >
							{$share['name']}
						</div>
						<!--{if ""!=$share['mall_name']}-->
						<div class="cate_share_mall">
							<span style="color: #FB5FAC">{$share['mall_name']}商城<span><span style="margin-left: 1em">有售</span>
						</div>
						<!--{/if}-->
						<div class="cate_index_price"><span class="discount_index_price1">{$share['pub_out_money_1']}</span><span class="discount_index_price2">{$share['pub_out_money_2']}</span><span class="discount">[{$share['dzt_discount']}折]</span></div>
					</li>
				<!--{/loop}-->
				</ul>
				</div>			
			</div>
	<!--{/loop}-->
	</div>
	<script>
	function CateUpdateUserFollow(obj,result)
	{
		if(result.status == 1)
		{
			$(obj).before('<img src="./tpl/images/flow_ok.gif" />');
			$(obj).remove();
		}
		else{
			$(obj).before('<img src="./tpl/images/to_flow.gif" />');
			$(obj).remove();
		}
	}
	
	function changeCate(cate){
		$('.dazhetime_cate_share_box').each(
			function(){
				if(!$(this).hasClass('cat_hidden')){
					$(this).addClass('cat_hidden');
				}
			}	
		);
		$('#'+cate).removeClass('cat_hidden');
	}
	
	jQuery(function(){
		$('.cate_share_box li').hover(function(){
			$(this).children('.trsp_bg').stop().animate( { height: "80px" }, 300 );
			$(this).children('.trsp_bg').find('h4 .f12').stop().animate({ fontSize: "18px" }, 50);
		},
		function(){
			$(this).children('.trsp_bg').stop().animate( { height: "30px" }, 300 );
			$(this).children('.trsp_bg').find('h4 .f12').stop().animate({ fontSize: "12px" }, 50);
		});
		$('#coats').removeClass('cat_hidden');
	});
	</script>
<!--{/if}-->